package com.kaochong.xcx.service;

import com.kaochong.xcx.web.aspect.CurrentUser;

import java.util.List;
import java.util.Map;

/**
 * @author han
 * @date 2018-06-25 11:56
 */
public interface ShareService {
	
	/**
	 * 好友助力
	 * @param user
	 * @param openId
	 * @param target
	 * @param stage
	 */
	void friendHelp(CurrentUser user, String openId, Integer target, Integer stage);
	
	/**
	 * 好友助力列表
	 * @param openId
	 * @param target
	 * @param stage
	 * @return
	 */
	List<Map<String,Object>> friendHelpList(String openId, Integer target, Integer stage);
	
	/**
	 * 好友助力人数
	 * @param openId
	 * @param target
	 * @param stage
	 * @return
	 */
	Integer friendHelpCount(String openId, Integer target, Integer stage);
	
	/**
	 * 重置今日好友助力
	 * @param openId
	 * @param target
	 * @return
	 */
	Integer resetFriendHelp(String openId, Integer target);
}
